package com.ljx.NoteBody.controller;


import com.ljx.NoteBody.common.R;
import com.ljx.NoteBody.entity.Calls;
import com.ljx.NoteBody.service.CallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/call")
public class CallController {

    @Autowired
    CallService callService;

    @GetMapping
    public R<Calls> getNoteCall(){
        return R.success(callService.getNoteCall());
    }
}
